//
//  zynAVPlayerSingleton.h
//  The Station Agent
//
//  Created by dllo on 16/3/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
@interface zynAVPlayerSingleton : NSObject

@property (nonatomic, retain) AVPlayer *player;
@property (nonatomic, retain) AVPlayerItem *playerItem;
@property (nonatomic, retain) UIImageView *imageView;
@property (nonatomic, retain) UIImageView *bgImage;
@property (nonatomic, retain) UIVisualEffectView *effectView;
@property (nonatomic, retain) UILabel *labelOfTitle;
@property (nonatomic, retain) UILabel *labelOfCommentCount;
@property (nonatomic, retain) UILabel *labelOflikeCount;
@property (nonatomic, retain) UIButton *buttonOfComment;
@property (nonatomic, retain) UIButton *buttonOfLike;
@property (nonatomic, retain) UISlider *ProgressSlider;
@property (nonatomic, assign) CGFloat totalMusicDuration; // 保存该音频资源的总时长，快进或快退的时候要用
@property (nonatomic, assign) BOOL isRotation;
@property (nonatomic, assign) BOOL isPlay;
@property (nonatomic, retain) id observerName;
@property (nonatomic, retain) UILabel *LabelOfLeftTime;
@property (nonatomic, retain) UILabel *labelOfRightTime;
@property (nonatomic, retain) UIView *playerView;
+ (instancetype)sharePlayer;
- (void)playerWithUrl:(NSString *)url;
@end
